package com.aaa.hospital.ManagementEnd.service.Impl;


import com.aaa.hospital.Configurationterminal.pojo.Admintab;
import com.aaa.hospital.ManagementEnd.mapper.AdmintabDao;
import com.aaa.hospital.ManagementEnd.service.AdmintabService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdmintabServiceImpl implements AdmintabService {

    @Autowired
  private AdmintabDao admintabDao;

    @Override
    public List<Admintab> admin_query() {
        return admintabDao.admin_query();
    }

    @Override
    public boolean admin_insert(Admintab admintab) {
        return admintabDao.admin_insert(admintab);
    }

    @Override
    public boolean admin_update(Admintab admintab) {
        return admintabDao.admin_update(admintab);
    }

    @Override
    public boolean admin_delete(Integer id) {
        return admintabDao.admin_delete(id);
    }

    @Override
    public List<Admintab> limitAll(String user, String name) {
        return admintabDao.limitAll(user, name);
    }
}
